fix(docs): redirect base-path 404 + Java SDK in README#392
Conversation
📝 WalkthroughWalkthroughThis PR adds a Maven Central badge and Java SDK mentions to README.md, and fixes the docs redirect route to prepend the deployment base path (from import.meta.env.BASE_URL) to redirect and canonical URLs in the meta() function. ChangesREADME Java SDK Updates
Docs Redirect Base Path Fix
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
The redirect stub's meta-refresh URL is resolved against the origin, not the router, so under the /taskito deploy base it dropped the prefix and 404'd (e.g. section-landing and old-URL redirects). Prefix import.meta.env.BASE_URL; the SPA navigate() path was already basename-aware.
Java is published to Maven Central (org.byteveda:taskito); list it in the SDK table, comparison, and badges alongside Python and Node.
e39d082 to
fcab92e
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
docs/app/routes/docs.$.tsx (1)
51-51: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueCanonical link uses a base-relative path, not an absolute URL.
hrefis only prefixed with the deploy base path, not the origin/scheme. Canonical tags are conventionally absolute URLs for SEO tooling; this is pre-existing behavior unrelated to the base-path bug being fixed here, but worth revisiting separately.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@docs/app/routes/docs`.$.tsx at line 51, The canonical link in the docs route is currently built as a base-relative path instead of an absolute URL. Update the canonical URL generation in the docs route logic that emits the link tag so `href` includes the full origin and scheme, not just the deploy base path, while keeping the base-path handling intact for the existing fix. Use the canonical link creation in `docs.$.tsx` as the place to adjust the URL assembly.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@docs/app/routes/docs`.$.tsx:
- Line 51: The canonical link in the docs route is currently built as a
base-relative path instead of an absolute URL. Update the canonical URL
generation in the docs route logic that emits the link tag so `href` includes
the full origin and scheme, not just the deploy base path, while keeping the
base-path handling intact for the existing fix. Use the canonical link creation
in `docs.$.tsx` as the place to adjust the URL assembly.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: bb9dcfb3-4447-43ee-ad3e-eae8577bbcae
📒 Files selected for processing (2)
README.mddocs/app/routes/docs.$.tsx
Redirect base-path 404 + Java SDK in README
1. Redirect meta-refresh dropped the deploy base path (404)
Follow-up to #391. The redirect stub's
meta-refreshURL is resolved against the origin, not the router — so under the/taskitodeploy base it emittedurl=/python/getting-started/installation(no prefix) and the host 404'd. The SPAnavigate()path was already basename-aware; only the static meta tag wasn't.Fix: prefix
import.meta.env.BASE_URLon the refresh + canonical URLs. This also repairs the pre-existingarchitecture/more/*/resourcesredirects, which had the same latent bug.Verified with a production-basename build (
DOCS_BASE_PATH=/taskito): stubs now emiturl=/taskito/….2. Java SDK in the README
Java is published to Maven Central (
org.byteveda:taskito) but the root README still listed only Python and Node. Added it to the SDK table, the comparison row, and a Maven Central badge.Summary by CodeRabbit
Documentation
Bug Fixes